/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ASAExpr;

import exception.DivisionByZeroException;
import exception.VariableNonDeclareeException;

/**
 *
 * @author FM & KB
 */
public class ASAExprNon extends ASAExpr{
    
    private ASAExpr expression;
    
    public ASAExprNon (ASAExpr expression){
        this.expression = expression; 
    }
    
    public int evalue() throws VariableNonDeclareeException, DivisionByZeroException {
        return expression.evalue() == 0 ? 1 : 0;
    }
    
    public String getLabelExplorateur() {
        return "NON";
    }
}
